<!doctype HTML public "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- Click to Convert 5.2: Anything to HTML -->
<!-- http://www.clicktoconvert.com -->

<html>
<head>
<title>gravityboxscheduleuserguide - page 22 of 234</title>
<meta http-equiv=content-type content=text/html;charset=iso-8859-1>
<meta name="Generator" content="Click to Convert">

<!--Start of page styles-->
<STYLE TYPE="text/css">
<!--
 /* Foreground Image Styles */

 /* Position Styles */
 .ts22p0{position:absolute;left:106px;top:97px;}
 .ts22p1{position:absolute;left:352px;top:97px;}
 .ts22p3{position:absolute;left:672px;top:97px;}
 .ts22p7{position:absolute;left:106px;top:113px;}
 .ts22p8{position:absolute;left:706px;top:1026px;}
 .ts22p9{position:absolute;left:331px;top:1044px;}
 .ts22p13{position:absolute;left:106px;top:146px;}
 .ts22p14{position:absolute;left:106px;top:164px;}
 .ts22p15{position:absolute;left:106px;top:183px;}
 .ts22p17{position:absolute;left:106px;top:201px;}
 .ts22p18{position:absolute;left:106px;top:220px;}
 .ts22p22{position:absolute;left:106px;top:238px;}
 .ts22p23{position:absolute;left:106px;top:256px;}
 .ts22p25{position:absolute;left:106px;top:275px;}
 .ts22p27{position:absolute;left:106px;top:293px;}
 .ts22p28{position:absolute;left:106px;top:313px;}
 .ts22p30{position:absolute;left:106px;top:331px;}
 .ts22p31{position:absolute;left:106px;top:349px;}
 .ts22p32{position:absolute;left:106px;top:368px;}
 .ts22p34{position:absolute;left:106px;top:386px;}
 .ts22p35{position:absolute;left:106px;top:406px;}
 .ts22p37{position:absolute;left:106px;top:424px;}
 .ts22p40{position:absolute;left:106px;top:442px;}
 .ts22p41{position:absolute;left:106px;top:461px;}
 .ts22p42{position:absolute;left:106px;top:479px;}
 .ts22p43{position:absolute;left:106px;top:497px;}
 .ts22p45{position:absolute;left:106px;top:516px;}
 .ts22p46{position:absolute;left:106px;top:534px;}
 .ts22p47{position:absolute;left:106px;top:553px;}
 .ts22p50{position:absolute;left:106px;top:571px;}
 .ts22p51{position:absolute;left:106px;top:590px;}
 .ts22p53{position:absolute;left:106px;top:609px;}
 .ts22p55{position:absolute;left:106px;top:627px;}
 .ts22p56{position:absolute;left:106px;top:645px;}
 .ts22p57{position:absolute;left:106px;top:664px;}
 .ts22p59{position:absolute;left:106px;top:682px;}
 .ts22p60{position:absolute;left:106px;top:701px;}
 .ts22p61{position:absolute;left:154px;top:701px;}
 .ts22p63{position:absolute;left:106px;top:719px;}
 .ts22p65{position:absolute;left:106px;top:737px;}
 .ts22p66{position:absolute;left:106px;top:757px;}
 .ts22p68{position:absolute;left:106px;top:775px;}
 .ts22p69{position:absolute;left:106px;top:794px;}
 .ts22p72{position:absolute;left:106px;top:812px;}
 .ts22p74{position:absolute;left:106px;top:830px;}
 .ts22p75{position:absolute;left:106px;top:849px;}
 .ts22p77{position:absolute;left:106px;top:867px;}
 .ts22p78{position:absolute;left:106px;top:887px;}
 .ts22p80{position:absolute;left:106px;top:905px;}
 .ts22p81{position:absolute;left:106px;top:923px;}
 .ts22p83{position:absolute;left:106px;top:942px;}
 .ts22p84{position:absolute;left:106px;top:960px;}
 .ts22p85{position:absolute;left:106px;top:979px;}

 /* Font Styles */
 .ft0p22{font-style:normal;font-weight:bold;font-size:13px;font-family:arial,sans-serif;color:#000000;}
 .ft1p22{font-weight:normal;}
 .ft2p22{font-style:normal;font-weight:normal;font-size:13px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft3p22{font-style:normal;font-weight:normal;font-size:16px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft4p22{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#000000;}
 .ft5p22{font-style:normal;font-weight:normal;font-size:16px;font-family:arial,sans-serif;color:#000000;}
 .ft6p22{font-style:normal;font-weight:normal;font-size:16px;font-family:"courier new",courier,monospace;color:#000000;}

 /* Background Style */
 .styleBackground22{position:absolute;left:97px;top:311px}

 /* Navigation Styles */
 .styleNavBarTop{position:absolute;left:0px;top:2px}
 .nb{position:absolute;left:2px;top:0px}
 .nbs{position:absolute;left:0px;top:0px}
 .nbe{position:absolute;left:836px;top:0px}
 .styleNavBarBot{position:absolute;left:0px;top:1117px}
-->
</STYLE>
<!--End of page styles-->

</head>
<body bgcolor="#ffffff" text="#000000" link="#0000FF" Vlink="#660099">

<table id="pageTable" width="836" STYLE="position: relative; left: auto; top: auto;"><tr><td>
<div class=nbs><img src="./navbarstart.gif" width="2" height="30"></div>
<div class=nb><img src="./navbar.gif" width="836" height="30" alt="Navigation bar"></div>
<div class=nbe><img src="./navbarend.gif" width="2" height="30"></div>
<div class=styleNavBarTop>
<table width="834" height="26" border="0" cellspacing="0">
  <tr align="left">
    <td width="4">&nbsp;</td>
    <td width="25" align="center"><a href="http://www.gravitybox.com" target="_parent"><img src="./home.gif" border="0" alt="Home"></a></td>
    <td width="25" align="center"><a href="#" onClick="window.open('./print.html','Printing','width=300,height=100,toolbar=no,directories=no');return false;"><img src="./print.gif" border="0" alt="Print document"></a></td>
    <td width="10" align="center"><img src="./separator.gif" border="0"></td>
    <td width="18" align="center"><a href="./index1.html"><img src="./start.gif" width="18" height="14" border="0" alt="Start"></a></td>
    <td width="18" align="center"><a href="./index21.html"><img src="./back.gif" width="14" height="14" border="0" alt="Previous page"></a></td>
    <td width="80" valign="middle"><table width="100%" height="16" border="0" cellspacing="1" bgcolor="#ACA899"><tr><td align="center" bgcolor="#ffffff"><font face=verdana,arial,sans-serif><font size="1">&nbsp;22 of 234&nbsp;</font></font></td></tr></table></td>
    <td width="18" align="center"><a href="./index23.html"><img src="./forward.gif" width="14" height="14" border="0" alt="Next page"></a></td>
    <td width="18" align="center"><a href="./index234.html"><img src="./end.gif" width="18" height="14" border="0" alt="End"></a></td>
    <td width="620">&nbsp;</td>
  </tr>
</table>
<p>
</div>
<nobr>
<div class=styleBackground22><img src="./background22.png" width="633" height="744" border="0" alt=""></div>
<div class=ts22p0><span class="ft0p22"> </span></div>
<div class=ts22p1><span class="ft0p22">Gravitybox Schedule Primer<span class="ft1p22"> </span></span></div>
<div class=ts22p3><span class="ft0p22">Page 20&nbsp; </span></div>
<div class=ts22p7><span class="ft2p22"> </span></div>
<div class=ts22p8><span class="ft3p22"> </span></div>
<div class=ts22p9><span class="ft4p22">1998&#45;2004 Gravitybox Software LLC<span class="ft3p22"> </span></span></div>
<div class=ts22p13><span class="ft5p22">value. If the value does not map to any valid value in the Rooms collection, nothing will </span></div>
<div class=ts22p14><span class="ft5p22">happen. The only error that may happen is one of logic. If you set this property to </span></div>
<div class=ts22p15><span class="ft5p22">&#147;Room1&#148; and the name of the room you wish to map is &#147;Room 1&#148;, the appointment will </span></div>
<div class=ts22p17><span class="ft5p22">not be displayed in the proper room. This may cause puzzling results, if you make this </span></div>
<div class=ts22p18><span class="ft5p22">error, but no run&#45;time error will be raised. </span></div>
<div class=ts22p22><span class="ft5p22"> </span></div>
<div class=ts22p23><span class="ft5p22">A room may be added to the Rooms collection with the Add method in the following </span></div>
<div class=ts22p25><span class="ft5p22">fashion. </span></div>
<div class=ts22p27><span class="ft5p22"> </span></div>
<div class=ts22p28><span class="ft6p22">Call Schedule1.Rooms.Add(&#147;Room1&#148;)<span class="ft5p22"> </span></span></div>
<div class=ts22p30><span class="ft5p22"> </span></div>
<div class=ts22p31><span class="ft5p22">The new room will be named &#147;Room1&#148;. This object may be referenced by name or index </span></div>
<div class=ts22p32><span class="ft5p22">[1..N]. The following code fragments are equivalent. </span></div>
<div class=ts22p34><span class="ft5p22"> </span></div>
<div class=ts22p35><span class="ft6p22">Debug.Print Schedule1.Rooms(&#147;Room1&#148;).Name </span></div>
<div class=ts22p37><span class="ft6p22">Debug.Print Schedule1.Rooms(1).Name<span class="ft5p22"> </span></span></div>
<div class=ts22p40><span class="ft5p22"> </span></div>
<div class=ts22p41><span class="ft5p22">A Room object&#146;s name may not be numeric. This is because there would be no way to </span></div>
<div class=ts22p42><span class="ft5p22">determine if the parameter being used is a name or an index. Since you may not add a </span></div>
<div class=ts22p43><span class="ft5p22">numeric name the code below is invalid but I use it as an illustration. If an object&#146;s name </span></div>
<div class=ts22p45><span class="ft5p22">were numeric, the following code would produce an error, since there is only one object </span></div>
<div class=ts22p46><span class="ft5p22">in the collection and its name is &#147;100&#148;. When referenced by the name &#147;100&#148;, the </span></div>
<div class=ts22p47><span class="ft5p22">collection will try to return index 100, which does not exist, and produce an error. </span></div>
<div class=ts22p50><span class="ft5p22"> </span></div>
<div class=ts22p51><span class="ft6p22">Call Schedule1.Rooms.Add(&#147;100&#148;) </span></div>
<div class=ts22p53><span class="ft6p22">Debug.Print Schedule1.Rooms(&#147;100&#148;).Name &#145;ERROR<span class="ft5p22"> </span></span></div>
<div class=ts22p55><span class="ft5p22"> </span></div>
<div class=ts22p56><span class="ft5p22">This logic also applies to all object collections in this product. The name of no object </span></div>
<div class=ts22p57><span class="ft5p22">may be numeric. </span></div>
<div class=ts22p59><span class="ft5p22"> </span></div>
<div class=ts22p60><span class="ft5p22"> </span></div>
<div class=ts22p61><span class="ft5p22">Rooms may not be renamed directly. By this I mean that the following code will </span></div>
<div class=ts22p63><span class="ft5p22">not execute. It will not rename the first Room object in the collection to &#147;NewName&#148;. </span></div>
<div class=ts22p65><span class="ft5p22"> </span></div>
<div class=ts22p66><span class="ft6p22">Schedule1.Rooms(1).Name = &#147;NewName&#148;<span class="ft5p22"> </span></span></div>
<div class=ts22p68><span class="ft5p22"> </span></div>
<div class=ts22p69><span class="ft5p22">This code will produce an error, because the Name property is read&#45;only. If the name of </span></div>
<div class=ts22p72><span class="ft5p22">existing Room needs to be changed, the collection&#146;s Rename method must be used. If, </span></div>
<div class=ts22p74><span class="ft5p22">as in the previous example, the first Room object is to be renamed &#147;NewName&#148;, the </span></div>
<div class=ts22p75><span class="ft5p22">following code would work. </span></div>
<div class=ts22p77><span class="ft5p22"> </span></div>
<div class=ts22p78><span class="ft6p22">Call Schedule1.Rooms.Rename(1, &#147;NewName&#148;)<span class="ft5p22"> </span></span></div>
<div class=ts22p80><span class="ft5p22"> </span></div>
<div class=ts22p81><span class="ft5p22">The Rooms collection actually has many useful methods. These may be used to </span></div>
<div class=ts22p83><span class="ft5p22">manipulate Room objects within the collection. There are also search functions that </span></div>
<div class=ts22p84><span class="ft5p22">make finding a particular object much easier. Additional language support for the </span></div>
<div class=ts22p85><span class="ft5p22">displayed schedule may be provided as well, with the collection&#146;s DisplayName </span></div>
<div class=styleNavBarBot>
<table width="836" border="0" cellspacing="2">
  <tr></tr>
  <tr>
    <td width="118"><a href="http://www.purepage.com"><img src="./smalllogo.gif" width="118" height="46" border="0" alt="http://www.purepage.com"></a></td>
    <td></td>
  </tr>
</table>
</div>

</td></tr></table>

</body>
</html>
